/*
 * SoundSource.h
 *
 *  Created on: 20 Apr 2011
 *      Author: sinan
 */

#ifndef SOUNDSOURCE_H_
#define SOUNDSOURCE_H_

#include <AL/alure.h>
#include <AL/alut.h>
#include <iostream>

enum ChessWarningSoundType
{
	ChessWarningSoundType_NULL = 0,
	ChessWarningSoundType_TicTac,
	ChessWarningSoundType_Eat,
	ChessWarningSoundType_Win,
	ChessWarningSoundType_Lose,
	ChessWarningSoundType_Check,
	ChessWarningSoundType_WrongMove
};

class SoundSource {
public:

	void InitAllWarningSounds();
	void PlayWhistle();
	void PlayCheck();
	void PlayCheckMateLose();
	void PlayCheckMateWin();
	void PlayWrongChessManSelection();
	void PlayTicTock();

	static ChessWarningSoundType LastWarningSoundType;
	static ALuint SoundSourceWhistle; //
	static ALuint SoundSourceCheck; //
	static ALuint SoundSourceCheckMateLose; //
	static ALuint SoundSourceCheckMateWin; //
	static ALuint SoundSourceWrongChessManSelection; // BU HALA YOK
	static ALuint SoundSourceTicTock; //

	SoundSource();
	virtual ~SoundSource();
};

#endif /* SOUNDSOURCE_H_ */
